import $http from './http'

export function searchHostList(param) {
  return $http.$get('/user/list', param)
}

export function nodeInfo(param) {
  return $http.$post('/pipeline/node/info/info',param)
}

export function addNodeInfo(param) {
  return $http.$post('/pipeline/node/info/add',param)
}

export function updateInfo(param) {
  return $http.$put('/pipeline/node/info/update', param)
}

export function info(id) {
  return $http.$get('/app/pipeline/info', { 'id': id })
}

export function add(param) {
  return $http.$post('/app/pipeline/add', param)
}

export function update(param) {
  return $http.$put('/app/pipeline/update', param)
}

export function deploy(param) {
  return $http.$post('/app/pipeline/deploy', param)
}

export function execute(param) {
  return $http.$get('/app/pipeline/execute', param)
}

export function listAppInfo(param) {
  return $http.$get('/app/info/list', param)
}

export function list(param) {
  return $http.$get('/pipeline/node/list', param)
}

export function page(param) {
  return $http.$get('/app/pipeline/page', param)
}

export function del(param) {
  return $http.$delete('/app/pipeline/delete', param)
}
